package com.csun.cmny.provider.mapper;

import com.csun.cmny.core.mybatis.MyMapper;
import com.csun.cmny.provider.model.domain.OpcFlowMessageGroupWay;
import com.csun.cmny.provider.model.dto.message.FlowMessageGroupWayDto;
import com.csun.cmny.provider.model.vo.message.FlowMessageVo;
import com.csun.cmny.provider.model.vo.message.MessageWayVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
@Component
public interface OpcFlowMessageGroupWayMapper extends MyMapper<OpcFlowMessageGroupWay> {

    /**
     * query group message way with code and group id
     *
     * @param code      the message code
     * @param groupId   the group id
     *
     * @return the flow message vo
     */
    FlowMessageVo queryGroupMessageWayWithCodeAndGroupId(@Param("code") String code,
                                                         @Param("groupId") Long groupId);

    /**
     * query group message way list
     *
     * @param flowMessageGroupWayDto
     *
     * @return
     */
    List<MessageWayVo> queryWayList(FlowMessageGroupWayDto flowMessageGroupWayDto);
}